🌎 rns.kin.earth git 🌍
Commit 902f7af64da7bd38bede3f81b2fdc119dae028fc
Parents : 004bf27
Author : Mark Qvist <mark@unsigned.io>
Date : 2022-10-12T15:14:42+02:00
Added platform check
Changes
Diff
diff --git a/RNS/Interfaces/RNodeInterface.py b/RNS/Interfaces/RNodeInterface.py
index 2ae79127..44053ae2 100644
--- a/RNS/Interfaces/RNodeInterface.py
+++ b/RNS/Interfaces/RNodeInterface.py
@@ -103,6 +103,9 @@ class RNodeInterface(Interface):
RECONNECT_WAIT = 5
def __init__(self, owner, name, port, frequency = None, bandwidth = None, txpower = None, sf = None, cr = None, flow_control = False, id_interval = None, id_callsign = None):
+ if RNS.vendor.platformutils.is_android():
+ raise SystemError("Invlaid interface type. The Android-specific RNode interface must be used on Android")
+
import importlib
if importlib.util.find_spec('serial') != None:
import serial
Served by rngit 1.5.2 - Generated in 0.03s